﻿#parse("partials/header.html") #parse("partials/sidebar.html")

<style type="text/css">
    div.dataTables_filter
    {
        display: none;
    }
    div.dataTables_length
    {
        display: none;
    }
    .mws-table thead
    {
        border-top: 1px solid #ccc;
    }
    .row-align, .row-header th
    {
        text-align: center;
    }
</style>
<script>
    var rooturl = '${rooturl}';
</script>
<script type="text/javascript">

    function getQuerystring(key, default_) {
        if (default_ == null) default_ = "";
        key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
        var regex = new RegExp("[\\?&]" + key + "=([^&#]*)");
        var qs = regex.exec(window.location.href);
        if (qs == null)
            return default_;
        else
            return qs[1];
    }

    function OpenPopUp(url) {
        var second = getQuerystring('id');
        $("#mws-evencalendar-dialog").dialog("open");
        $("#modalIframeFormEventCalendar").attr("src", "${rooturl}frontoffice/doctorscheduler/createscheduler?id=" + second);
        return false;
    }
</script>
<script type="text/javascript" language="javascript">
    function InitScheduleMondayDataTable() {

            //var id = getUrlVars()["id"].toString();
            var oTableScheduleMonday = $('#tablelistoneweek').dataTable({
            //"sScrollX": "150%",
            //"bScrollCollapse": true,
            "bSort": false,
            "sPaginationType": "full_numbers",
            "bProcessing": true,
            "bAutoWidth": false,
            "bServerSide": true,
            "sAjaxSource": "${rooturl}schedule/schedulerview/tablelistoneweek/?id=${DoctorId}",
            "aoColumns": [
                            { "mDataProp": "Location" },
                            { "mDataProp": "Sunday" },
                            { "mDataProp": "Monday" },
                            { "mDataProp": "Tuesday" },
                            { "mDataProp": "Wednesday" },
                            { "mDataProp": "Thursday" },
                            { "mDataProp": "Friday" },
                            { "mDataProp": "Saturday" }
                        ]
        });

    }


    $(document).ready(function () {
        InitScheduleMondayDataTable();

    });

    function getQuerystring(key, default_) {
        if (default_ == null) default_ = "";
        key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
        var regex = new RegExp("[\\?&]" + key + "=([^&#]*)");
        var qs = regex.exec(window.location.href);
        if (qs == null) return default_; else return qs[1];
    }

    function CreateShedulerpage() {
        var doctorid = getQuerystring('id');
        window.location = "/schedule/schedulerview/createscheduler/?id=" + doctorid;
    }
</script>
<!-- Main Container Start -->
<div id="mws-container" class="clearfix">
    <!-- Inner Container Start -->
    <div class="container">
        <!-- Panels Start -->
        <div class="mws-panel grid_8 mws-collapsible">
            <div class="title-caption">
                <h5>$headerinformation - Doctor Schedule</h5>
            </div>
            <div class="mws-panel-header">
                <span class="mws-i-24 i-calendar-today">Doctor Schedule</span>
            </div>
            <div class="mws-panel-body">
                <div class="mws-panel-toolbar top clearfix">
                    <ul>
                        <li><a class="mws-ic-16 ic-accept" href="/schedule/schedulerview/" title="Accept">
                            List Doctor</a></li>
                    </ul>
                   
                </div>
                <div class="mws-form">
                    <div class="mws-form-inline">
                        <div class="mws-form-row">
                            <label>
                                Doctor Name:</label>
                            <div class="mws-form-item large">
                                <div class="mws-form-cols clearfix">
                                    <div class="mws-form-col-2-8 alpha">
                                        <div class="mws-form-item">
                                            <label style="padding-top:1px">
                                                $DoctorName</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="mws-form-row">
                            <label>
                                Group Specialist :</label>
                            <div class="mws-form-item large">
                                <div class="mws-form-cols clearfix">
                                    <div class="mws-form-col-2-8 alpha">
                                        <div class="mws-form-item">
                                            <label style="padding-top:1px">
                                                $GroupSpecialist</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="mws-form-row">
                            <label>
                                Sub Specialist :</label>
                            <div class="mws-form-item large">
                                <div class="mws-form-cols clearfix">
                                    <div class="mws-form-col-2-8 alpha">
                                        <div class="mws-form-item">
                                            <label style="padding-top:1px">
                                                $SubSpecialist</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <br />
                </div>
                <hr />
                <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="tablelistoneweek"
                    width="900px">
                    <thead>
                        <tr>
                            <th style="width: 200px; text-align: center">
                                Location
                            </th>
                             <th style="width: 30px; text-align: center">
                                Sunday
                            </th>
                            <th style="width: 30px; text-align: center">
                                Monday
                            </th>
                            <th style="width: 30px; text-align: center">
                                Thuesday
                            </th>
                            <th style="width: 30px; text-align: center">
                                Wednesday
                            </th>
                            <th style="width: 30px; text-align: center">
                                Thursday
                            </th>
                            <th style="width: 30px; text-align: center">
                                Friday
                            </th>
                            <th style="width: 30px; text-align: center">
                                Saturday
                            </th>
                           
                        </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
                <div class="clearfix">
                </div>
            </div>
        </div>
        <!-- Panels End -->
    </div>
</div>
<!-- Main Container End -->
#parse("partials/footer.html") 